<script setup>
import { ref, onMounted } from 'vue'
const accessToken = ref('')
const username = ref('')


onMounted(() => {
  let data = JSON.parse(window.localStorage.getItem('access-token'));
  accessToken.value = data.token;
  username.value = data.username;
  console.log('token===>',accessToken.value);
})
</script>

<template>
  <div class="about">
    <div id="nav">
      <router-link to="/home">返回首页</router-link>
      <br>
      <span>{{username}}</span>
      <br>
      <span>{{accessToken}}</span>
      <br>
      <br>
    </div>
    <br>
    <br>
    <a href="">资源1</a> |
    <a href="">资源2</a> |
    <a href="">资源3</a> |
    <a href="">资源4</a> |
    <a href="">资源5</a>
  </div>

</template>

<style scoped>

</style>